package com.css.dzj.zfjg.modules.supervisioncompinfo.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * 监管调解信息表
 */
@Entity
@Table(name = "JG_TSJB_MEDIATE_INFO", schema = "DZJZFJG", catalog = "")
public class JgTsjbMediateInfoEntity {
    private String uuId;
    private String registerCode;
    private String mediateEnddate;
    private String mediateResult;
    private String tortType;
    private String unactDuty;
    private String isFraud;
    private String mediationbookNumber;
    private BigDecimal disputeAmount;
    private BigDecimal redeemAmount;
    private BigDecimal moralreparationAmount;
    private BigDecimal doubleindemnityAmount;
    private String processCode;

    @Id
    @Column(name = "Uu_Id")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getUuId() {
        return uuId;
    }

    public void setUuId(String uuId) {
        this.uuId = uuId;
    }

    @Basic
    @Column(name = "Register_Code")
    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    @Basic
    @Column(name = "Mediate_Enddate")
    public String getMediateEnddate() {
        return mediateEnddate;
    }

    public void setMediateEnddate(String mediateEnddate) {
        this.mediateEnddate = mediateEnddate;
    }

    @Basic
    @Column(name = "Mediate_Result")
    public String getMediateResult() {
        return mediateResult;
    }

    public void setMediateResult(String mediateResult) {
        this.mediateResult = mediateResult;
    }

    @Basic
    @Column(name = "Tort_Type")
    public String getTortType() {
        return tortType;
    }

    public void setTortType(String tortType) {
        this.tortType = tortType;
    }

    @Basic
    @Column(name = "Unact_Duty")
    public String getUnactDuty() {
        return unactDuty;
    }

    public void setUnactDuty(String unactDuty) {
        this.unactDuty = unactDuty;
    }

    @Basic
    @Column(name = "Is_Fraud")
    public String getIsFraud() {
        return isFraud;
    }

    public void setIsFraud(String isFraud) {
        this.isFraud = isFraud;
    }

    @Basic
    @Column(name = "Mediationbook_Number")
    public String getMediationbookNumber() {
        return mediationbookNumber;
    }

    public void setMediationbookNumber(String mediationbookNumber) {
        this.mediationbookNumber = mediationbookNumber;
    }

    @Basic
    @Column(name = "Dispute_Amount")
    public BigDecimal getDisputeAmount() {
        return disputeAmount;
    }

    public void setDisputeAmount(BigDecimal disputeAmount) {
        this.disputeAmount = disputeAmount;
    }

    @Basic
    @Column(name = "Redeem_Amount")
    public BigDecimal getRedeemAmount() {
        return redeemAmount;
    }

    public void setRedeemAmount(BigDecimal redeemAmount) {
        this.redeemAmount = redeemAmount;
    }

    @Basic
    @Column(name = "Moralreparation_Amount")
    public BigDecimal getMoralreparationAmount() {
        return moralreparationAmount;
    }

    public void setMoralreparationAmount(BigDecimal moralreparationAmount) {
        this.moralreparationAmount = moralreparationAmount;
    }

    @Basic
    @Column(name = "Doubleindemnity_Amount")
    public BigDecimal getDoubleindemnityAmount() {
        return doubleindemnityAmount;
    }

    public void setDoubleindemnityAmount(BigDecimal doubleindemnityAmount) {
        this.doubleindemnityAmount = doubleindemnityAmount;
    }

    @Basic
    @Column(name = "Process_Code")
    public String getProcessCode() {
        return processCode;
    }

    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgTsjbMediateInfoEntity that = (JgTsjbMediateInfoEntity) o;
        return Objects.equals(uuId, that.uuId) &&
                Objects.equals(registerCode, that.registerCode) &&
                Objects.equals(mediateEnddate, that.mediateEnddate) &&
                Objects.equals(mediateResult, that.mediateResult) &&
                Objects.equals(tortType, that.tortType) &&
                Objects.equals(unactDuty, that.unactDuty) &&
                Objects.equals(isFraud, that.isFraud) &&
                Objects.equals(mediationbookNumber, that.mediationbookNumber) &&
                Objects.equals(disputeAmount, that.disputeAmount) &&
                Objects.equals(redeemAmount, that.redeemAmount) &&
                Objects.equals(moralreparationAmount, that.moralreparationAmount) &&
                Objects.equals(doubleindemnityAmount, that.doubleindemnityAmount) &&
                Objects.equals(processCode, that.processCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuId, registerCode, mediateEnddate, mediateResult, tortType, unactDuty, isFraud, mediationbookNumber, disputeAmount, redeemAmount, moralreparationAmount, doubleindemnityAmount, processCode);
    }
}
